<?php

namespace App\Http\Admin\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
    protected $primaryKey = 'id';
    protected $guarded = [];
    protected $table = 'admin_users';

    public function roles(){
        return $this->belongsToMany(Role::class,'admin_user_roles','user_id','role_id');
    }
}
